<%@ page import="cn.dai.util.JdbcUtils" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="cn.dai.pojo.Java30" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/3
  Time: 11:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    String id = request.getParameter("id");

    Connection connection = JdbcUtils.getConnection();

    String sql = "SELECT * FROM java30 WHERE j30_id = ?";

    Java30 java30 = JdbcUtils.queryOne(connection, Java30.class, sql, new Object[]{id});
%>

<h3>这是修改学生页面</h3>
<form action="panel_update_action.jsp" method="post">

    <table border="1" width="50%">

        <tr>
            <td> 学员ID </td>
            <td> 学员姓名 </td>
            <td> 学员电话 </td>
            <td> 学员QQ </td>
        </tr>

        <tr>
            <td><input type="text" name="id" value="<%= java30.getJ30_id()%>"></td>
            <td><input type="text" name="name" value="<%= java30.getJ30_name()%>"></td>
            <td><input type="text" name="phone" value="<%= java30.getJ30_phone()%>"></td>
            <td><input type="text" name="qq" value="<%= java30.getJ30_qq()%>"></td>
        </tr>

    </table>

        <p style="text-align: center"><input type="submit" value="修改学员"></p>

</form>

</body>
</html>
